define(()=>{
    $.get('./data/goods.json').then((res)=>{
        var ul = document.querySelector('.phoneList')
       var arr = res.slice(0,8)
       var str = ''
       arr.forEach(item => {
        str += `
        <li>
        <a href='html/magnifier.html'>
        <img src = "${item.imgUrl}">
        <h3 class='title'>${item.name}</h3>
        <p class="des">${item.brief}</p>
        <p class="price">￥${item.price}</p>
        <p class="promotion">${item.promotion}</p>
        </a>
        </li>
    `
       });
       $(ul).html(str)
    })
});